package com.zlcx.tz.live.constant;


public enum UseState {

    abandon("废弃", 0),
    inactive("赞未使用", 1),
    active("使用中", 2),
    ;

    UseState(String tips, int code) {
        this.tips = tips;
        this.code = code;
    }

    private String tips;
    private int code;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getTips() {
        return tips;
    }

    public void setTips(String tips) {
        this.tips = tips;
    }

    public static UseState getUseState(int code) {
        for (UseState field : UseState.values()) {
            if (code==field.getCode()) {
                return field;
            }
        }
        return null;
    }
}
